#ifndef UPDATER_H
#define UPDATER_H

#include "curl.h"
#include <string>

class Updater
{
public:
	Updater();
	~Updater();
	int checkForUpdates();
	bool updateMemoryXML();

private:
	static size_t getLatestVersions(char *data, size_t size, size_t nmemb, std::string *buffer);
	static size_t writeMemoryXML(void *ptr, size_t size, size_t nmemb, FILE *stream);
	bool getCurrentVersions();

	CURL *curl;
	std::string latestVersions, currentOverseer, currentDF;
};


#endif